import { request } from "@/utils/service"
import type * as User from "./types/user"

/**
 * 批量启用/禁用用户数据
 * @param ids 需要启用/禁用的用户ID数组
 * @returns Promise<Resp>
 */
export function batchUpateStatusApi(ids: number[], status: number) {
  return request({
    url: "user/batchUpateStatus",
    method: "put",
    data: { ids, status}
  })
}

/** 查 */
export function getUserDataApi(params: User.UserRequestData) {
  return request<User.UserResponseData>({
    url: "user/page",
    method: "get",
    params
  })
}
